package play.cnblog.cli.dao;

import java.util.Map;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ImageDao {

    @Select("select * from image_test where id = #{id}")
    Map get(@Param("id") int id);

    @Insert("INSERT INTO image_test (id, local_image, remote_image) VALUES (#{id}, #{localImg}, #{remoteImg})")
    int insert(@Param("id") int id, @Param("localImg") String localImg,
        @Param("remoteImg") String remoteImg);
}
